package com.ttc.group2.videochat.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ttc.group2.videochat.R;
import com.ttc.group2.videochat.utils.ViewUtil;

public class TitleBar extends LinearLayout {
	public ImageView imgSatus;
	public TextView title;
	
	public TitleBar(Context context) {
		super(context);
		if (isInEditMode()) {
			return;
		}
		init();
	}

	public TitleBar(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
		if (isInEditMode()) {
			return;
		}
		init();
	}
	
	private void init() {
		LayoutInflater.from(getContext()).inflate(R.layout.actionbar_title_view, this);
		imgSatus = (ImageView)ViewUtil.findViewById(imgSatus, R.id.imgStatus);
		title = (TextView)ViewUtil.findViewById(title, R.id.txtTitle);
		
		// check online/offline status
		
	}
	
	

}
